home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Musik & Kunst / Ear Workout 2.1 / source code / generic.h < prev    next >
Text File  |  1995-09-30  |  601b  |  21 lines

  1.  
  2. //
  3. //    generic stuff that isn't specific to the mac or to this program
  4. //
  5.  
  6. typedef signed char    BYTE_T;
  7. typedef signed short   WORD_T;
  8. typedef signed long    LONG_T;
  9. typedef unsigned char  UBYTE_T;
  10. typedef unsigned short UWORD_T;
  11. typedef unsigned long  ULONG_T;
  12.  
  13. #define EVEN_ADDRESS(x) (!(((unsigned long) (x)) & 1L))
  14. #define VALID_POINTER(x) \
  15.     ( (((char *) (x))!=((char *) 0)) && (((char *) (x))!=((char *) -1)) )
  16. #define VALID_HANDLE(x) (VALID_POINTER(x) && EVEN_ADDRESS(x) \
  17.     && VALID_POINTER(* (char **) (x)) )
  18.  
  19. typedef int FUNCTION_RETURNING_INT();
  20. typedef void FUNCTION_RETURNING_VOID();
  21.